package com.xiangyi.teachingsystem.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xiangyi.teachingsystem.dao.ShortMsgMapper;
import com.xiangyi.teachingsystem.entity.dto.MsgListDto;
import com.xiangyi.teachingsystem.entity.po.ShortMsg;
import com.xiangyi.teachingsystem.service.ShortMsgService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShortMsgServiceImpl extends ServiceImpl<ShortMsgMapper, ShortMsg> implements ShortMsgService {
    @Override
    public List<MsgListDto> msgList(Integer id) {
        return baseMapper.msgList(id);
    }

    @Override
    public List<ShortMsg> msgInfoList(String msgSpace) {
        return baseMapper.msgInfoList(msgSpace);
    }
}
